namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class VersionMap : ClassMap<VersionDataModel>
    {
        #region Constructors and Destructors

        public VersionMap()
        {
            this.Table("Version");
            this.LazyLoad();
            Id();

            this.Map(x => x.MajorVersion).Not.Nullable().Column("MajorVersion");
            this.Map(x => x.MinorVersion).Not.Nullable().Column("MinorVersion");
            this.Map(x => x.Build).Not.Nullable().Column("Build");
            this.Map(x => x.Revision).Not.Nullable().Column("Revision");
            this.Map(x => x.SiteLastModified).Column("SiteLastModified");
        }

        #endregion
    }
}